package cn.chia.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.chia.back.dao.IOrdertimeDAO;
import cn.chia.pojo.Ordertime;
import cn.chia.service.OrdertimeService;
@Service
public class OrdertimeServiceImpl implements OrdertimeService {
	private IOrdertimeDAO ordertimeDao;
	
	@Resource(name="ordertimeDAOImpl")
	public void setOrdertimeDao(IOrdertimeDAO ordertimeDao) {
		this.ordertimeDao = ordertimeDao;
	}
	/*
	 * 于辉  根据id查找订单时间
	 */
	public Ordertime findById(String ordernumber) throws Exception {
		return ordertimeDao.findById(ordernumber);
	}
	/*
	 * 于辉  修改订单时间
	 */
	public void update(Ordertime vo) throws Exception {
		ordertimeDao.doUpdate(vo);
	}

	//创建订单时间
	public void add(Ordertime vo) throws Exception{
		ordertimeDao.doCreate(vo);
	}
}
